// async await 错误处理
export const awaitCatch = (promise) => {
    return promise.then((res) => [null, res]).catch((err) => [err, null]);
}